<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh">
<head>
    <title>物资入库记录</title>
    <jsp:include page="/WEB-INF/view/commons/css.jsp" />
</head>
<body >
<div id="main-container" class="container-fluid">
	<button type="button" class="btn btn-primary" onclick="submitInfo();"><i class="fa fa-floppy-o"></i>&nbsp;打印</button>
    <div class="panel panel-info">
        <div class="panel-body" id="pop">
       		<form  action="appMaterialsIn/commitIn" name="inputForm" id="inputForm" method="post" class="form-horizontal">
		        <input name="id" id="id" value="${entity.id}" type="hidden" />
		        <input name="signName" id="signName" value="" type="hidden" />
		        <div style="border-bottom: 1px solid #000000;padding: 10px 5px;margin-bottom: 15px;font-size:16px">
		            ${entity.inTitle}
		        </div>
		        <div style="text-align: center;position: relative; width: auto" >
		            <h4 style="text-align: center;font-size: 21px;display: inline-block;margin-top: 8px;margin-bottom: 8px;">
		                物资入库登记表
		            </h4>
		            <img src="${barCodeImg}" style="position: absolute;right: 10px;top: 0;width: 160px;height: 65px"/>
                    <c:if test="${entity.inStatus == '3'}">
                        <img src="${res}/static/images/invalid_2.png" style="position: absolute;right: 290px;top: 0;width: 157px;height: 93px"/>
                    </c:if>
		        </div>
		        <table style="width: 100%;margin-top: 30px">
		            <tr>
                        <td style="text-align: left">
		                    ${entity.inCode}
		                </td>
		                <td style="text-align: right;">
		                    来往单位：${entity.orgName}
		                </td>
		            </tr>
		        </table>
		        <table border="1" style="border-collapse: collapse;width: 100%;margin:auto;">
		            <tr>
		                <td align="center">序号</td>
		                <td align="center">物资名称</td>
		                <td align="center">规格</td>
		                <td align="center">单位</td>
		                <td align="center">数量</td>
		                <td align="center">备注</td>
		            </tr>
		            <c:forEach var="each" varStatus="vs" items="${appInDetailList}">
		                <tr>
		                    <td class='center'>${vs.index+1}</td>
		                    <td align="center">${each.materialsName}</td>
		                    <td align="center">${each.specification}</td>
		                    <td align="center">${each.unit}</td>
		                    <td align="center">${each.inNum}</td>
		                    <td align="center">${each.remark}</td>
		                </tr>
		            </c:forEach>
		        </table>
                <table style="width: 100%;margin-top: 10px;">
                    <tr>
                        <td width="33%" style="vertical-align: top;text-align: left;">发放单位：${entity.grantOrgName}</td>
                        <td width="33%" style="vertical-align: top;text-align: left;">入库时间：${entity.inTimeStr}</td>
                        <td width="33%" style="text-align: right;vertical-align: top;">
                            <p style="text-align: right;margin: 0;">经办人：${entity.agentName}</p>
                        </td>
                    </tr>
                    <tr>
                        <td width="50%" style="vertical-align: top;text-align: left" colspan="2">
                            <table width="100%">
                                <tr>
                                    <td style="text-align: left">
                                        备注：${entity.remark}
                                    </td>
                                </tr>
                                <c:if test="${entity.inStatus == '3'}">
                                    <tr>
                                        <td style="text-align: left">作废原因：${entity.invalidRemark}</td>
                                    </tr>
                                </c:if>
                            </table>
                        </td>
                        <td>
                            签名： <img id="qianming" src="${entity.signName}" style="height: 90px;vertical-align: middle;"/>
                        </td>
                    </tr>
                </table>
		    </form>
        </div>
    </div><!-- /.panel -->
</div><!--/#main-container-->

<!-- script start -->
<jsp:include page="/WEB-INF/view/commons/js.jsp" />
<script type="text/javascript" src="${res}/static/plugin/jquery-print/jQuery.print.js"></script>
<script type="text/javascript">
    $(document).ready(function(e) {
        
    });
    function submitInfo(){
    	$.print("#inputForm");
    }
    function onClose(){
    	closeParentIframe();
    }
</script>
<!-- script end -->
</body>
</html>
